package br.com.jmmarca.dao.impl;

import android.content.Context;
import br.com.jmmarca.dao.generic.AbstractDAO;
import br.com.jmmarca.dao.generic.AbtractTableDefinition;
import br.com.jmmarca.dao.generic.DataManager;
import br.com.jmmarca.model.Cor;

public class CorDAO extends AbstractDAO<Cor> {
    
    private static CorDAO instance;

    private CorDAO(Context context) {
    	super(Cor.class,new AbtractTableDefinition<Cor>(Cor.class), new DataManager(context));
    }

    public static CorDAO getInstance(Context context) {
        if (instance == null) {
            instance = new CorDAO(context);
        }
        return instance;
    }
}
